.fx-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;

  &:hover {
    > .fx-carousel-path.hover {
      transform: translateX(0) !important;
      opacity: 1 !important;
    }

    > .fx-carousel-dots.hover {
      transform: translateX(-50%) !important;
    }
  }

  > .fx-carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
  }

  > .fx-carousel-path {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, .3);
    color: $color-white;
    border-radius: 50%;
    transition: all 0.15s;

    &:hover {
      background-color: rgba(0, 0, 0, .7);
    }

    &.right {
      left: auto;
      right: 25px;
    }

    &.hover {
      transform: translateX(calc(-100% - 10px));
      opacity: 0;

      &.right {
        transform: translateX(calc(100% + 10px));
      }
    }
  }

  > .fx-carousel-dots {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;

    &.fx-carousel-dots-bottom {
      width: 80%;
      left: 50%;
      bottom: 20px;
      transform: translateX(-50%);

      &.hover {
        transition: transform 0.15s;
        transform: translateX(-50%) translateY(calc(100% + 30px));
      }
    }

    &.fx-carousel-dots-top {
      width: 80%;
      left: 50%;
      top: 20px;
      transform: translateX(-50%);

      &.hover {
        transition: transform 0.15s;
        transform: translateX(-50%) translateY(calc(100% - 30px));
      }
    }

    &.fx-carousel-dots-left {
      height: 80%;
      flex-direction: column;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);

      &.hover {
        transition: transform 0.15s;
        transform: translateY(-50%) translateX(calc(-100% - 30px));
      }

      > li {
        height: 20px;
        width: 2px;
        margin: 5px 0;
      }
    }

    &.fx-carousel-dots-right {
      height: 80%;
      flex-direction: column;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);

      &.hover {
        transition: transform 0.15s;
        transform: translateY(-50%) translateX(calc(-100% - 30px));
      }

      > li {
        height: 20px;
        width: 2px;
        margin: 5px 0;
      }
    }

    > li {
      cursor: pointer;
      height: 2px;
      width: 20px;
      margin: 0 5px;
      background-color: rgba(255, 255, 255, .5);
      position: relative;
      transition: all 0.15s;

      &.active {
        background-color: $color-primary;
      }
    }
  }
}

.fx-carousel-item {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;

  &.to-left-enter-active {
    transform: translateX(0);
    transition: all 0.3s ease;
  }

  &.to-left-leave-active {
    transform: translateX(-100%);
    transition: all 0.3s ease;
  }

  &.to-left-enter-from {
    transform: translateX(100%);
  }

  &.to-left-leave-to {
    transform: translateX(-100%);
  }

  &.to-right-enter-active {
    transform: translateX(0);
    transition: all 0.3s ease;
  }

  &.to-right-leave-active {
    transform: translateX(100%);
    transition: all 0.3s ease;
  }

  &.to-right-enter-from {
    transform: translateX(-100%);
  }

  &.to-right-leave-to {
    transform: translateX(100%);
  }
}
